<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition template="../templates/hub.xhtml">
	<ui:define name="titre">#{lbl['hub.title']}</ui:define>
	<ui:define name="hub_page">

		<!-- Inclusion du bloc de navigation complet. -->
		<ui:include src="../blocs/inc_navigation_full.xhtml" />

		<div id="main_display_info_wagon_div" class="hub_scrollable">

			<!-- Insertion du panneau d'affichage des voies -->
			<ui:include src="../blocs/inc_rail.xhtml" />

			<!-- Div d'affichage pour les infos wagon. -->
			<div id="display_info_wagon" class="display_wagon" />

			<!-- Les boutons de pilotage pour impression / reception / formation. -->
			<h:form id="hub_command_form">

				<!-- Le bouton pour la gestion des receptions (arrivées). -->
				<div id="arrival_div" class="arrival">
					<h:panelGrid id="arrival_panel">
						<h:outputText value="#{lbl['common.north']}" />
						<a4j:commandButton value="#{lbl['menu.hub.arrival']}"
							action="#{hubManaged.checkArrivals}"
							styleClass="hub_action_button"
							rendered="#{loginManaged.currentUser.role.role == 'ROLE_AGENCY_CHIEF' 
							|| loginManaged.currentUser.role.role == 'ROLE_COORDINATOR'}"
							oncomplete="openOneWindow('/hub/faces/pages/sec_manage_arrival.jsf','hub_arrival',
							1400,650,'toolbar=no,location=no,directories=no,status=no,
							menubar=no,scrollbars=no,copyhistory=no,resizable=no');" />
					</h:panelGrid>
				</div>

				<!-- Le bouton pour la gestion des formations (départs). -->
				<div id="departure_div" class="departure">
					<h:panelGrid id="departure_panel">
						<h:outputText value="#{lbl['common.south']}" />
						<a4j:commandButton value="#{lbl['menu.hub.departure']}"
							action="#{hubManaged.checkDepartures}"
							styleClass="hub_action_button"
							rendered="#{loginManaged.currentUser.role.role == 'ROLE_AGENCY_CHIEF' 
							|| loginManaged.currentUser.role.role == 'ROLE_COORDINATOR'}"
							oncomplete="openOneWindow('/hub/faces/pages/sec_manage_departure.jsf','hub_departure',
							1400,650,'toolbar=no,location=no,directories=no,status=no,
							menubar=no,scrollbars=no,copyhistory=no,resizable=no');" />
					</h:panelGrid>
				</div>
			</h:form>
		</div>
	</ui:define>
</ui:composition>
</html>